<%@ Page language="c#" %>
<%
		Response.Buffer = true;
		Response.ContentType = "application/x-javascript";
		string lid, msg, area, SProtocol, PP_SERVICE;

		if ( Request.QueryString.Count > 0 )
		{
			lid = Request.QueryString["lid"];
			area = Request.QueryString["area"];
			PP_SERVICE = Request.QueryString["PP_SERVICE"].ToLower();
			switch (PP_SERVICE)
			{
				case "login":
		%>
				CBLogoHREF  =  "http://channel9.msdn.com";
				CBLoginBody += "<img alt='the nine guy' class='nineguyantennae' src='http://channel9.msdn.com/Themes/redesign/images/nineguytop.png'>";
				CBLoginBody += "<div class='pagelayout'>";
				CBLoginBody += "	<div class='header'>";
				CBLoginBody += "		<a href='http://channel9.msdn.com/default.aspx'><img alt='the nine guy' border='0' src='http://channel9.msdn.com/Themes/redesign/images/nineguy.png' style='position:absolute;'></a>";
				CBLoginBody += "		<div class='maintask'>";
				CBLoginBody += "			<a href='http://channel9.msdn.com' id='Template__ctl0_Navigationmenu1__ctl0_Home' class='menuLink' title='Home'>Home </a>";
				CBLoginBody += "			<a href='http://channel9.msdn.com/Search/default.aspx' id='Template__ctl0_Navigationmenu1__ctl0_Search' class='menuLink'>Search </a>";
				CBLoginBody += "			<a href='http://channel9.msdn.com/ShowPost.aspx?PostID=74' id='Template__ctl0_Navigationmenu1__ctl0_Faq' class='menuLink'>About </a>";
				CBLoginBody += "			<a href='http://channel9.msdn.com/rss.aspx' id='Template__ctl0_Navigationmenu1__ctl0_GlobalRss' class='rssMenuLink' title='Subscribe to the Channel 9 Master RSS Feed'><img title='' border='0' src='http://channel9.msdn.com/Themes/redesign/images/xml.gif'></a>";
				CBLoginBody += "			<br>";
				CBLoginBody += "			<a style='border-style:none;padding:0px;margin:0px;' href='http://msdn.microsoft.com/'><img alt='Microsoft Developer Network' border='0' style='margin-top:8px;' src='http://channel9.msdn.com/Themes/redesign/images/msdn.gif'></a>";
				CBLoginBody += "		</div>";
				CBLoginBody += "		<ul id='Template__ctl0_GlobalTopNav' class='mainnav'>";
				CBLoginBody += "			<li class='item'><a href='http://channel9.msdn.com/forums.aspx' title='Forums'>Forums</a></li>";
				CBLoginBody += "			<li class='item'><a href='http://channel9.msdn.com/wiki/default.aspx' Title='Wiki'>Wiki</a></li>";
				CBLoginBody += "			<li class='item'><a href='http://channel9.msdn.com/ShowForum.aspx?ForumID=13' title='Moblog'>Moblog</a></li>";
				CBLoginBody += "			<li class='item'><a href='http://channel9.msdn.com/ShowForum.aspx?ForumID=14' title='Videos'>Videos</a></li>";
				CBLoginBody += "		</ul>";
				CBLoginBody += "	</div>";
				CBLoginBody += "	<div class='brownborder' style='margin:13px;'>";
				CBLoginBody += "		<div class='brownhighlight'>";
				CBLoginBody += "			<h2>Channel 9 Windows Live ID Login</h2>";
				CBLoginBody += "				<div class='box' style='padding:10px;'>";
				CBLoginBody += "					<center>PASSPORT_UI";
				CBLoginBody += "						<br/>";
				CBLoginBody += "						<table cellpadding='0' cellspacing='0' border='0'>";
				CBLoginBody += "							<tr>";
				CBLoginBody += "								<td></td>";
				CBLoginBody += "								<td style='padding:5px;' class='txt3'><b>New users</b> to Channel 9 need to create a Channel 9 User Account after signing in with their Windows Live ID.</td>";
				CBLoginBody += "							</tr>";
				CBLoginBody += "							<tr>";
				CBLoginBody += "								<td></td>";
				CBLoginBody += "								<td style='padding:5px;' class='txt3'><b>Existing users</b> of Channel 9 will be asked to associate their account after entering their Windows Live ID credentials.</td>";
				CBLoginBody += "							</tr>";
				CBLoginBody += "						</table>";
				CBLoginBody += "					</center>";
				CBLoginBody += "				</div>";
				CBLoginBody += "		</div>";
				CBLoginBody += "	</div>";
				CBLoginBody += "	<div class='footer'>";
				CBLoginBody += "		<div class='brownborder'>";
				CBLoginBody += "			<div class='brownhighlight'>";
				CBLoginBody += "				<div class='box'>";
				CBLoginBody += "					<p>&copy;&nbsp;Copyright 2006 Microsoft Corporation. All Rights Reserved.</p>";
				CBLoginBody += "					<p>";
				CBLoginBody += "						<A title='Terms of Use' href='http://channel9.msdn.com/termsofuse.aspx'>Terms of Use</A> ";
				CBLoginBody += "						| <A href='http://channel9.msdn.com/privacy.aspx'>Privacy Statement</A>";
				CBLoginBody += "						| <A href='mailto:channel9@microsoft.com'>Contact Us</A>";
				CBLoginBody += "						| Hosted by <a href='http://www.orcsweb.com/'>Orcsweb.com</a>";
				CBLoginBody += "						| <a href='http://forums.asp.net'>Powered by ASP.NET Forums</a>";
				CBLoginBody += "					</p>";
				CBLoginBody += "				</div>";
				CBLoginBody += "			</div>";
				CBLoginBody += "		</div>";	
				CBLoginBody += "	</div>";
				CBLoginBody += "</div>";
				CBLoginBody += "<div class='pageborderbottom'></div>";	
		<%
				break;
				
				case "registration":
		%>
				CBLogoHREF  =  "http://channel9.msdn.com";
				CBRegistrationBody += "<img alt='the nine guy' class='nineguyantennae' src='http://channel9.msdn.com/Themes/redesign/images/nineguytop.png'>";
				CBRegistrationBody += "<div class='pagelayout'>";
				CBRegistrationBody += "	<div class='header'>";
				CBRegistrationBody += "		<a href='http://channel9.msdn.com/default.aspx'><img alt='the nine guy' border='0' src='http://channel9.msdn.com/Themes/redesign/images/nineguy.png' style='position:absolute;'></a>";
				CBRegistrationBody += "		<div class='maintask'>";
				CBRegistrationBody += "			<a href='http://channel9.msdn.com' id='Template__ctl0_Navigationmenu1__ctl0_Home2' class='menuLinkFirst' title='Home'>Home </a>";
				CBRegistrationBody += "			<a href='http://channel9.msdn.com/Search/default.aspx' id='Template__ctl0_Navigationmenu1__ctl0_Search2' class='menuLink'>Search </a>";
				CBRegistrationBody += "			<a href='http://channel9.msdn.com/ShowPost.aspx?PostID=74' id='Template__ctl0_Navigationmenu1__ctl0_Faq2' class='menuLink'>About </a>";
				CBRegistrationBody += "			<a href='http://channel9.msdn.com/rss.aspx' id='Template__ctl0_Navigationmenu1__ctl0_GlobalRss2' class='rssMenuLink' title='Subscribe to the Channel 9 Master RSS Feed'><img title='' border='0' src='http://channel9.msdn.com/Themes/redesign/images/xml.gif'></a>";
				CBRegistrationBody += "			<a href='http://channel9.msdn.com/login.aspx' id='Template__ctl0_Navigationmenu1__ctl0_Logout2' class='menuLink'>Login </a><br>";
				CBRegistrationBody += "			<a style='border-style:none;padding:0px;margin:0px;' href='http://msdn.microsoft.com/'><img alt='Microsoft Developer Network' border='0' style='margin-top:8px;' src='http://channel9.msdn.com/Themes/redesign/images/msdn.gif'></a>";
				CBRegistrationBody += "		</div>";
				CBRegistrationBody += "		<ul id='Template__ctl0_GlobalTopNav2' class='mainnav'>";
				CBRegistrationBody += "			<li class='item'><a href='http://channel9.msdn.com/forums.aspx' title='Forums'>Forums</a></li>";
				CBRegistrationBody += "			<li class='item'><a href='http://channel9.msdn.com/wiki/default.aspx' Title='Wiki'>Wiki</a></li>";
				CBRegistrationBody += "			<li class='item'><a href='http://channel9.msdn.com/ShowForum.aspx?ForumID=13' title='Moblog'>Moblog</a></li>";
				CBRegistrationBody += "			<li class='item'><a href='http://channel9.msdn.com/ShowForum.aspx?ForumID=14' title='Videos'>Videos</a></li>";
				CBRegistrationBody += "		</ul>";
				CBRegistrationBody += "	</div>";
				CBRegistrationBody += "	<div class='brownborder' style='margin:13px;'>";
				CBRegistrationBody += "		<div class='brownhighlight'>";
				CBRegistrationBody += "			<h2>Channel 9 Passport Registration</h2>";
				CBRegistrationBody += "				<div class='box' style='padding:10px;'>";
				CBRegistrationBody += "					In order to continue you must first set up a Windows Live ID account.";
				CBRegistrationBody += "					<center><P>PASSPORT_UI</center>";
				CBRegistrationBody += "				</div>";
				CBRegistrationBody += "		</div>";
				CBRegistrationBody += "	</div>";
				CBRegistrationBody += "	<div class='footer'>";
				CBRegistrationBody += "		<div class='brownborder'>";
				CBRegistrationBody += "			<div class='brownhighlight'>";
				CBRegistrationBody += "				<div class='box'>";
				CBRegistrationBody += "					<p>&copy;&nbsp;Copyright 2006 Microsoft Corporation. All Rights Reserved.</p>";
				CBRegistrationBody += "					<p>";
				CBRegistrationBody += "						<A title='Terms of Use' href='http://channel9.msdn.com/termsofuse.aspx'>Terms of Use</A> ";
				CBRegistrationBody += "						| <A href='http://channel9.msdn.com/privacy.aspx'>Privacy Statement</A>";
				CBRegistrationBody += "						| <A href='mailto:channel9@microsoft.com'>Contact Us</A>";
				CBRegistrationBody += "						| Hosted by <a href='http://www.orcsweb.com/'>Orcsweb.com</a>";
				CBRegistrationBody += "						| <a href='http://forums.asp.net'>Powered by ASP.NET Forums</a>";
				CBRegistrationBody += "					</p>";
				CBRegistrationBody += "				</div>";
				CBRegistrationBody += "			</div>";
				CBRegistrationBody += "		</div>";	
				CBRegistrationBody += "	</div>";
				CBRegistrationBody += "</div>";
				CBRegistrationBody += "<div class='pageborderbottom'></div>";	
		<%
				break;
			}
		}
		Response.End();
%>